package org.blogsite.greencode.struts2.interceptor;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

/**
 * @author：wzj
 * E-mail: jsun789@gmail.com
 * @date：2010-8-2 上午04:31:59
 */
public class ValidatorErrorInterceptor extends AbstractInterceptor {

	@Override
	public String intercept(ActionInvocation actioninvocation) throws Exception {
		ActionSupport action= (ActionSupport) actioninvocation.getAction();  
		action.clearErrorsAndMessages();  
		return actioninvocation.invoke();  
	}

}
